package com.yz.design.responsibilityDegin;

public class CResponsibility extends AbstractMessageResponsibility<Message> {
	@Override
	public void doSomething(Message message) {
		if ("C".equals(message.getTag())) {
			System.out.println("C does something");
			System.out.println(message.toString());
			return;
		}
		//当前没法处理，回调回去，让下一个去处理
		nextHandler.doSomething(message);
	}
}